package com.restaurant.springboot.repositories;

import com.restaurant.springboot.entity.CouponSeriesEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.beans.Transient;
import java.util.List;

public interface CouponSeriesRepository extends JpaRepository<CouponSeriesEntity,Integer> {

    boolean existsById(int id);

    @Transient
    List<CouponSeriesEntity> findAllByEnabled(boolean enable);

}
